import { createRouter, createWebHashHistory } from "vue-router";
import Home from "../views/Home.vue";
import Welcome from "../views/Welcom.vue";
import Login from "../views/Login.vue";
const routes = [
    {
        path: "/",
        name: "Home",
        component: Home,
        redirect: "/welcome",
        children: [
            {
                path: "/welcome",
                name: "Welcome",
                component: Welcome,
            },
            {
                path: "/login",
                name: "Login",
                component: Login,
            },
        ],
    },
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
});
export default router;